home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Extra 1997 #4
/
Amiga Plus Extra 1997 #4.iso
/
pd
/
grafik
/
video easel
/
camrexx
/
beats_me.rexx
next >
Wrap
OS/2 REXX Batch file
|
1997-06-09
|
753b
|
36 lines
/* Beats-me by an idea of Toffoli, in CAMRexx by THOR */
MakeAlgorithm:
PLANEALGORITHM neumann centers
return
MakePlane:
if plane=0 | plane=1 then; do
select
when alts=0 then
beat=norths
when alts=1 then
beat=souths
when alts=2 then
beat=wests
when alts=3 then
beat=easts
end
new=centers+1
if new=4 then
new=0
if beat=new then
SETPLANES new
else SETPLANES centers
end
if plane=2 then; do
new=((south & east) ^ west ^ north ^ center) ^ center_
SETPLANE new
end
if plane=3 then; do
new=((south_ & west_) ^ east_ ^ north_ ^ center_) ^ center
SETPLANE new
end
return